<div class="header_wrap">
  <header class="wrap">
    <div class="menu">
      <svg t="1622103381703" class="menu_icon" viewBox="0 0 1024 1024" version="1.1"
           xmlns="http://www.w3.org/2000/svg" p-id="18675" width="200" height="200">
        <path
                d="M11.776 899.072h1000.96v59.904H11.776zM12.8 65.024H1013.76v59.904H12.8zM10.24 473.088h636.416v59.904H10.24zM765.44 728.064l244.224-229.888-244.224-229.888z"
                p-id="18676"></path>
      </svg>
    </div>
    <div class="logo"><a href="/" style="color: var(--header-color);">{$web_options['name']}</a></div>
    <div class="nav">
      {foreach $pages as $key=>$item}
      <div class="nav_item">
        <a href="/page/{$item.aid}" class="nav_item_url">{$item.title}</a>
      </div>
      {/foreach}
      {foreach $categories as $key=>$item}
      <div class="nav_item">
        <a href="/class/{$item.catid}" class="nav_item_url">{$item.catname}</a>
        {if condition = "empty($item.child)"}
        {else/}
        <div class="children">
          <svg t="1622016984220" class="children_icon" viewBox="0 0 1024 1024" version="1.1"
               xmlns="http://www.w3.org/2000/svg" p-id="1173" width="200" height="200">
            <path
                    d="M558.3051283 756.48113778c-13.66789689 13.66789689-32.21579852 26.36003555-49.78915555 22.45457541-17.57214341 2.9284883-34.16852859-10.73940859-47.83521186-22.45457541L37.96870637 331.81635319c-21.47760355-21.47638992-21.47760355-56.62189037 0-78.09949393s56.62189037-21.47638992 78.0982803 0l393.42595793 404.16415289 394.40171615-404.16293926c21.47638992-21.47760355 56.62189037-21.47760355 78.09828028 0s21.47760355 56.62189037 0 78.0982803L558.3051283 756.48113778z"
                    p-id="1174"></path>
          </svg>
          {foreach $item.child as $key=>$item2}
          <div class="children_wrap">
            <div class="children_wrap_item">
              <a href="/class/{$item2.catid}">{$item2.catname}</a>
            </div>
            {if condition = "empty($item2.child)"}
            {else/}
            <div class="children_wrap_item">
              {foreach $item2.child as $key=>$item3}
              <a href="/class/{$item3.catid}">{$item3.catname}</a>
              {if condition = "empty($item3.child)"}
              {else/}
              <div class="rulelayer">
                {foreach $item3.child as $key=>$item4}
                <div class="rulelayer_item">
                  <a href="/class/{$item4.catid}">{$item4.catname}</a>
                </div>
                {/foreach}
              </div>
              {/if}
              {/foreach}
            </div>
            {/if}
          </div>
          {/foreach}

        </div>
        {/if}
      </div>
      {/foreach}
    </div>
  </header>
</div>
<div class="mobile_nav">
  <ul>
    {foreach $pages as $key=>$item}
    <li><a href="/page/{$item.aid}">{$item.title}</a></li>
    {/foreach}
    {foreach $categoriesData as $key=>$item}
    <li><a href="/class/{$item.catid}">{$item.catname}</a></li>
    {/foreach}
  </ul>
</div>
<div class="mobile_nav_mask"></div>